<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]' => [
        ':id' => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'get']],
    ],

    'user/index' => 'index/user/index',
    'user/create' => 'index/user/create',
    'user/add' => 'index/user/add',
    'user/add_list' => 'index/user/addList',
    'user/update/:id' => 'index/user/update',
    // 'user/delete/:id' => 'index/user/delete',
    'user/:id' => 'index/user/read',
    'user/email/:email' => 'index/user/readByEmail',
    'user/all' => 'index/user/readall',
    'user/allByStatus' => 'index/user/readallByStatus',
    'user/readByCondition' => 'index/user/readByCondition',
    'user/queryByScope' => 'index/user/queryByScope',
    'user/queryLineOperation' => 'index/user/queryLineOperation',
    'user/queryLineOperation' => 'index/user/queryLineOperation',

    'user/addBook' => 'index/user/addBook',
    'user/read/:id' => 'index/user/read',
    'user/readByUserId/:id' => 'index/user/readByUserId',
    'user/delete' => 'index/user/delete',
];
